// src/api/product.js
import http from "../utils/http";

// 获取产品列表
export const getProducts = (params) => {
  return http.get("/products", { params });
};

export const getById = (params) => {
  return http.get(`/products/id`, { params });
}